Optimal. Leaf size=64 \[ -\frac {\text {ArcTan}(\sinh (e+f x)) \cosh (e+f x)}{a f \sqrt {a \cosh ^2(e+f x)}}-\frac {\coth (e+f x)}{a f \sqrt {a \cosh ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3255, 3286,
2701, 327, 213} \begin {gather*} -\frac {\cosh (e+f x) \text {ArcTan}(\sinh (e+f x))}{a f \sqrt {a \cosh ^2(e+f x)}}-\frac {\coth (e+f x)}{a f \sqrt {a \cosh ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 213
Rule 327
Rule 2701
Rule 3255
Rule 3286
Rubi steps
\begin {align*} \int \frac {\coth ^2(e+f x)}{\left (a+a \sinh ^2(e+f x)\right )^{3/2}} \, dx &=\int \frac {\coth ^2(e+f x)}{\left (a \cosh ^2(e+f x)\right )^{3/2}} \, dx\\ &=\frac {\cosh (e+f x) \int \text {csch}^2(e+f x) \text {sech}(e+f x) \, dx}{a \sqrt {a \cosh ^2(e+f x)}}\\ &=-\frac {(i \cosh (e+f x)) \text {Subst}\left (\int \frac {x^2}{-1+x^2} \, dx,x,-i \text {csch}(e+f x)\right )}{a f \sqrt {a \cosh ^2(e+f x)}}\\ &=-\frac {\coth (e+f x)}{a f \sqrt {a \cosh ^2(e+f x)}}-\frac {(i \cosh (e+f x)) \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,-i \text {csch}(e+f x)\right )}{a f \sqrt {a \cosh ^2(e+f x)}}\\ &=-\frac {\tan ^{-1}(\sinh (e+f x)) \cosh (e+f x)}{a f \sqrt {a \cosh ^2(e+f x)}}-\frac {\coth (e+f x)}{a f \sqrt {a \cosh ^2(e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.06, size = 46, normalized size = 0.72 \begin {gather*} -\frac {\coth (e+f x) \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};-\sinh ^2(e+f x)\right )}{a f \sqrt {a \cosh ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.36, size = 51, normalized size = 0.80
method | result | size |
default | \(-\frac {\cosh \left (f x +e \right ) \left (\arctan \left (\sinh \left (f x +e \right )\right ) \sinh \left (f x +e \right )+1\right )}{a \sinh \left (f x +e \right ) \sqrt {a \left (\cosh ^{2}\left (f x +e \right )\right )}\, f}\) | \(51\) |
risch | \(-\frac {2 \left ({\mathrm e}^{2 f x +2 e}+1\right )}{a \sqrt {\left ({\mathrm e}^{2 f x +2 e}+1\right )^{2} a \,{\mathrm e}^{-2 f x -2 e}}\, f \left ({\mathrm e}^{2 f x +2 e}-1\right )}+\frac {i \ln \left ({\mathrm e}^{f x}-i {\mathrm e}^{-e}\right ) \left ({\mathrm e}^{2 f x +2 e}+1\right ) {\mathrm e}^{-f x -e}}{f \sqrt {\left ({\mathrm e}^{2 f x +2 e}+1\right )^{2} a \,{\mathrm e}^{-2 f x -2 e}}\, a}-\frac {i \ln \left ({\mathrm e}^{f x}+i {\mathrm e}^{-e}\right ) \left ({\mathrm e}^{2 f x +2 e}+1\right ) {\mathrm e}^{-f x -e}}{f \sqrt {\left ({\mathrm e}^{2 f x +2 e}+1\right )^{2} a \,{\mathrm e}^{-2 f x -2 e}}\, a}\) | \(196\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 341 vs.
\(2 (65) = 130\).
time = 0.49, size = 341, normalized size = 5.33 \begin {gather*} -\frac {\frac {3 \, \sqrt {a} e^{\left (-f x - e\right )} + 2 \, \sqrt {a} e^{\left (-3 \, f x - 3 \, e\right )} + 3 \, \sqrt {a} e^{\left (-5 \, f x - 5 \, e\right )}}{a^{2} e^{\left (-2 \, f x - 2 \, e\right )} - a^{2} e^{\left (-4 \, f x - 4 \, e\right )} - a^{2} e^{\left (-6 \, f x - 6 \, e\right )} + a^{2}} - \frac {3 \, \arctan \left (e^{\left (-f x - e\right )}\right )}{a^{\frac {3}{2}}}}{2 \, f} - \frac {5 \, \sqrt {a} e^{\left (-f x - e\right )} + 6 \, \sqrt {a} e^{\left (-3 \, f x - 3 \, e\right )} - 3 \, \sqrt {a} e^{\left (-5 \, f x - 5 \, e\right )}}{4 \, {\left (a^{2} e^{\left (-2 \, f x - 2 \, e\right )} - a^{2} e^{\left (-4 \, f x - 4 \, e\right )} - a^{2} e^{\left (-6 \, f x - 6 \, e\right )} + a^{2}\right )} f} + \frac {3 \, \sqrt {a} e^{\left (-f x - e\right )} - 6 \, \sqrt {a} e^{\left (-3 \, f x - 3 \, e\right )} - 5 \, \sqrt {a} e^{\left (-5 \, f x - 5 \, e\right )}}{4 \, {\left (a^{2} e^{\left (-2 \, f x - 2 \, e\right )} - a^{2} e^{\left (-4 \, f x - 4 \, e\right )} - a^{2} e^{\left (-6 \, f x - 6 \, e\right )} + a^{2}\right )} f} + \frac {\arctan \left (e^{\left (-f x - e\right )}\right )}{2 \, a^{\frac {3}{2}} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 254 vs.
\(2 (60) = 120\).
time = 0.45, size = 254, normalized size = 3.97 \begin {gather*} -\frac {2 \, {\left ({\left (2 \, \cosh \left (f x + e\right ) e^{\left (f x + e\right )} \sinh \left (f x + e\right ) + e^{\left (f x + e\right )} \sinh \left (f x + e\right )^{2} + {\left (\cosh \left (f x + e\right )^{2} - 1\right )} e^{\left (f x + e\right )}\right )} \arctan \left (\cosh \left (f x + e\right ) + \sinh \left (f x + e\right )\right ) + \cosh \left (f x + e\right ) e^{\left (f x + e\right )} + e^{\left (f x + e\right )} \sinh \left (f x + e\right )\right )} \sqrt {a e^{\left (4 \, f x + 4 \, e\right )} + 2 \, a e^{\left (2 \, f x + 2 \, e\right )} + a} e^{\left (-f x - e\right )}}{a^{2} f \cosh \left (f x + e\right )^{2} - a^{2} f + {\left (a^{2} f e^{\left (2 \, f x + 2 \, e\right )} + a^{2} f\right )} \sinh \left (f x + e\right )^{2} + {\left (a^{2} f \cosh \left (f x + e\right )^{2} - a^{2} f\right )} e^{\left (2 \, f x + 2 \, e\right )} + 2 \, {\left (a^{2} f \cosh \left (f x + e\right ) e^{\left (2 \, f x + 2 \, e\right )} + a^{2} f \cosh \left (f x + e\right )\right )} \sinh \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\coth ^{2}{\left (e + f x \right )}}{\left (a \left (\sinh ^{2}{\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\mathrm {coth}\left (e+f\,x\right )}^2}{{\left (a\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________